package com.job.Yangmingyu.Zuoye0714;

import java.util.Random;
import java.util.UUID;

/**
 * @author com.job.Yangmingyu
 * @version 1.0
 * @since 2022-07-14 20:07:11
 */
public class UseRan {
    public static void main(String[] args) {
        Random ran=new Random();
        /*for (int i=0;i<=100;i++){
            System.out.println(ran.nextInt(100)+1);
        }*/
        //给文件起名时候，如果唯一，通常携带一串数字 16进制的32位 36位数

        String filename="总结";
        for (int i=1;i<=10;i++){
            String unname= UUID.randomUUID().toString()+filename;
            System.out.println(unname);
        }

        String[] names={"三","四","五","六","七","八"};
        for (int i=1;i<=5;i++){
            System.out.println("第"+"次"+names[ran.nextInt(names.length)]);
        }

    }
}